﻿using M;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MClient.Test
{
    internal class Queryer
    {
        static Queryer Instance = new Queryer();

        public static void Run()
        {
            Instance.OneToOneQuery();
        }

        public void OneToOneQuery()
        {
            var db = DI.InsProvider.GetService<OneToOneContext>();
            var item = db!.Player
                .Include(x=>x.Resume)
                .Single(x => x.Id == 1);
            Console.WriteLine(item.Resume.Id);
        }
    }
}
